
function addFriendCode(id){
	document.getElementById("friend-code-input-"+id).setStyle({visibility: 'visible', display: 'block'});
	document.getElementById("friend-code-submit-"+id).setStyle('visibility','visible');
	document.getElementById("add-friend-code-"+id).setStyle({visibility: 'hidden', display: 'none'});
}

function showWishList(){

	document.getElementById("your-games").setStyle({visibility: 'hidden', display: 'none'});
	document.getElementById("wish-list").setStyle({visibility: 'visible', display: 'block'});
}

function showMyGames(){

	document.getElementById("wish-list").setStyle({visibility: 'hidden', display: 'none'});
	document.getElementById("your-games").setStyle({visibility: 'visible', display: 'block'});
}	

function showGameDescription(id){

	document.getElementById("game-description-"+id).setStyle({visibility: 'visible', display: 'block'});
}

function hideGameDescription(id){
	
	document.getElementById("game-description-"+id).setStyle({visibility: 'hidden', display: 'none'});
}

function nextMonthsReleases(){

	document.getElementById("this-months-games").setStyle({visibility: 'hidden', display: 'none'});
	document.getElementById("next-months-games").setStyle({visibility: 'visible', display: 'block'});
}

function thisMonthsReleases(){

	document.getElementById("next-months-games").setStyle({visibility: 'hidden', display: 'none'});
	document.getElementById("this-months-games").setStyle({visibility: 'visible', display: 'block'});
}

function hide(element){
	document.getElementById(element).setStyle({visibility: 'hidden', display: 'none'});
}

function show(element){
	document.getElementById(element).setStyle({visibility: 'visible', display: 'block'});
}

function showGameElement(elementToShow){
	
	// hide all other elements first
	hide("description");
	
	show(elementToShow);
	
	/*
	if(elementToShow == "description"){
		document.getElementById("descriptionTab").setStyle({text-decoration: 'underline'});
	}*/
}
	
